Skip to content

Conversation

@benjaminbjornsson
Copy link
Member

No description provided.

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this work.
This looks globally fine, but some clean up required

@zephyrbot zephyrbot requested review from ABOSTM, FRASTM and gmarull April 29, 2022 15:37
@benjaminbjornsson benjaminbjornsson force-pushed the add_support_arduino_portenta_h7 branch 2 times, most recently from 8e3e960 to c53b7a1 Compare April 30, 2022 16:09
@romainreignier
Copy link

Thnaks @benjaminbjornsson for this work!
I have started to do the same last month, but because I am new to Zephyr, the path was a bit difficult for me.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the definition in [stm32h743.dtsi](https://github.com/zephyrproject-rtos/zephyr/blob/7fe5ab315a4453322780e5655364fe4de2a1b9b6/dts/arm/st/h7/stm32h743.dtsi) should be removed then?

usbotg_fs: usb@40080000 {
compatible = "st,stm32-otgfs";
reg = <0x40080000 0x40000>;
interrupts = <101 0>, <98 0>, <99 0>;
interrupt-names = "otgfs", "ep1_out", "ep1_in";
num-bidir-endpoints = <9>;
ram-size = <4096>;
maximum-speed = "full-speed";
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x080000000>;
phys = <&otghs_fs_phy>;
status = "disabled";
label= "OTG_FS";
};

I have noticed that the interrupts are not in the same order and h743 version has only 3 interrupts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romainreignier Thanks for raising this.
Actually this change is not correct. Only stm32H742 "and higher" support usbotg_fs. On the other hand usbotg_hs is indeed supported on the whole stm32h7 series.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! I'll move it to stm32h745.dtsi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still unable to use the sample samples/subsys/usb/console on the MachineControl, the USB device is not detected by the kernel on boot.

@romainreignier
Copy link

I have tried your branch myself and managed to run some samples:

  • basic/blinky on M7
  • basic/blinky on M4
  • hello_world on M7
  • subsys/console/echo on M7
  • subsys/shell/shell_module on M7
  • drivers/adc on M7

For the adc sample, I had to add these lines to the common dtsi:

&adc1 {
	pinctrl-0 = <&adc1_inp0_pa0>;
	pinctrl-names = "default";
	status = "okay";
};

And this overlay in the sample:

/ {
	zephyr,user {
		io-channels = <&adc1 0>;
	};
};

I don't own the Breakout Board to try the USB FS but I have a MachineControl on which I might test it.
I also have the Ethernet Vision shield on which I plan to test the Ethernet.

Everything went well 👍

@benjaminbjornsson benjaminbjornsson force-pushed the add_support_arduino_portenta_h7 branch 2 times, most recently from 1dd91c1 to dc258c8 Compare May 14, 2022 09:23
@erwango erwango added this to the v3.2.0 milestone May 17, 2022
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few last comment on my side.

Also, can you comment on the core frequency question ?

@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jul 18, 2022
@zephyrbot zephyrbot requested a review from GeorgeCGV August 7, 2022 12:18
@galak galak dismissed their stale review August 7, 2022 15:22

dt updates made, lgtm

@erwango
Copy link
Member

erwango commented Aug 8, 2022

@benjaminbjornsson can you check the build issues reported by CI ?

@benjaminbjornsson benjaminbjornsson force-pushed the add_support_arduino_portenta_h7 branch from 59a6c68 to a9e6818 Compare August 8, 2022 16:08
@zephyrbot zephyrbot requested a review from nvlsianpu August 8, 2022 16:09
@benjaminbjornsson
Copy link
Member Author

@benjaminbjornsson can you check the build issues reported by CI ?

@erwango I'm confused, it's not the board being added that fails now. Should more boards be excluded from flash_shell or did I break something by adding the new board to the exclude list?

@erwango
Copy link
Member

erwango commented Aug 10, 2022

@benjaminbjornsson can you check the build issues reported by CI ?

@erwango I'm confused, it's not the board being added that fails now. Should more boards be excluded from flash_shell or did I break something by adding the new board to the exclude list?

ok, please rebase and force push

@erwango
Copy link
Member

erwango commented Aug 11, 2022

@benjaminbjornsson It seems that you're out of luck and hit be several issues non related with your commit.
2 of them were unknown till now, and I raised dedicated issues (see #48911 and #48912).
Other one is known (#48608) but seems to be a tricky one.

Meanwhile, can you check following remaning comment: #45221 (comment) ?

@nvlsianpu nvlsianpu removed their request for review August 12, 2022 12:14
@romainreignier
Copy link

It seems that the only remaining issue is the line about the user button in the description text file.
It should not take too much time to remove @benjaminbjornsson
Thank you.

@erwango erwango modified the milestones: v3.2.0, v3.3.0 Sep 12, 2022
@erwango
Copy link
Member

erwango commented Sep 12, 2022

It seems that the only remaining issue is the line about the user button in the description text file. It should not take too much time to remove @benjaminbjornsson Thank you.

PR also requires a rebase.
Note that we're now in the process of releasing V3.2.0 and PR that are not bug fixes will now have to wait that the V3.2.0 is fully released before being merged.

This has been verified running samples usb/console and
usb/cdc_acm on a STM32H747XIH.

Signed-off-by: Benjamin Björnsson <[email protected]>
This commit adds support for the Arduino Portenta H7 board.
The board functionallity has been verified by running following samples:
- hello_world on m7 core
- usb/console on m7 core
- blinky on m4 core

Signed-off-by: Benjamin Björnsson <[email protected]>
Exclude Arduino Portenta H7 because the flash driver isn't
supported yet on the M4 core.

Signed-off-by: Benjamin Björnsson <[email protected]>
@benjaminbjornsson benjaminbjornsson force-pushed the add_support_arduino_portenta_h7 branch from 2800451 to b82656f Compare October 4, 2022 14:23
@zephyrbot zephyrbot requested a review from nvlsianpu October 4, 2022 14:24
@benjaminbjornsson
Copy link
Member Author

Sorry for the delay, I've removed the line about the push-button in the index now and also rebased.

@erwango erwango requested a review from fabiobaltieri October 6, 2022 15:08
@MaureenHelm MaureenHelm merged commit 2ba91ce into zephyrproject-rtos:main Oct 6, 2022
@benjaminbjornsson benjaminbjornsson deleted the add_support_arduino_portenta_h7 branch November 13, 2022 15:26
@bdunlay bdunlay mentioned this pull request Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants